<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>${requestScope.TableTitle}</title>
	</head>
	<body>	
		<%@ include file="HeaderAdmin.jsp" %>
		<center>
			<table border='0' cellpadding='5' cellspacing='5'>
				<tr align='left'>
					<td colspan='9'><b>${requestScope.TableTitle}</b></td>
					<td>
						<a href="EmployeeDetail">Add Employee</a>
					</td>
				</tr>
				<tr align='left'>
					<td colspan='10'><b>${requestScope.SecondListLink}</b></td>
				</tr>				
				<tr align='left' valign='top'>
					<td>Employee ID</td>
					<td>Name</td>
					<td>Manager ID</td>
					<td>E-mail</td>
					<td>Rank</td>
					<td>Admin Rights</td>
					<td>Edit</td>
					<td>Created On</td>
					<td>Modified On</td>
					<td>Archived</td>
				</tr>
					<c:forEach var="employeeBean" items="${requestScope.EmployeeList}">
					<tr align='left'>
						<td>${employeeBean.employeeId}</td>
						<td>${employeeBean.name}</td>
						<td>${employeeBean.managerId}</td>
						<td>${employeeBean.email}</td>
						<td>${employeeBean.rankID}</td>
						<td>${employeeBean.isAdmin}</td>
						<td><a href="EmployeeDetail?EditEmployeeId=${employeeBean.employeeId}">Edit</a></td>
						<td>${employeeBean.createdDate}</td>
						<td>${employeeBean.modifiedDate}</td>
						<td>${employeeBean.deleteFlag}</td>
					</tr>
				</c:forEach>
			</table>		
		</center>
	</body>
</html>